package com.example.myapplication;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class MyHelper  extends SQLiteOpenHelper {
    public MyHelper(Context context){
        super (context,"itcast.db",null,2);
    }
    public  void onCreate(SQLiteDatabase db){
        db.execSQL("CREATE TABLE information(id INTEGER PRIMARY KEY AUTOINCREMENT,account VARCHAR(20),password varchar(20))");
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}



